package common;

import java.util.List;

import util.Page;

public interface BaseBiz  {
	public <T> boolean save(T t) ;

	public <T> boolean update(T t) ;
	
	public <T> void  executeHql(String hql  ,Object...values );

	public <T> boolean delete(T t) ;

	public <T> T get(Class<T> cls, java.io.Serializable ID) ;
	
	public <T> T  findOneByHql(String hql ,Object... values);

	public <T> List<T> findAll(String hql, Object... values) ;

	public <T> List<T> findAll(String hql, Page pb,Object... values) ;

	public Long count(String hql, Object... values) ;
}
